package com.hooda.utils;

public final class HttpProtocolUtil {

    public static String getHttpHeader200(long length) {
        return "HTTP/1.1 OK 200 \n" +
                "Content-Type: text/html \n" +
                "Content-Length: " + length + "\n" +
                "\r\n";
    }

    public static String getHttpHeader404() {
        String str404 = "404 Not Found !";
        return "HTTP/1.1 404 NOT Found \n" +
                "Content-Type: text/html \n" +
                "Content-Length: " + str404.getBytes().length + " \n" +
                "\r\n" + str404;
    }
}
